SUBROUTINE DIV
     * Demonstrate the use of the RW_START_DIV and RW_END_DIV subroutines.

     * Include the RealWeb definitions
     INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP

     * Start the HTML page.
     CALL RW_START_HTML_PAGE("Division Example 1", "", "", "", "")

     * Insert a level 1 heading.
     TEXT = "Overview"
     CALL RWS_HEADING(TEXT, 1, 'style="color: purple"')
     CALL RW_PUT(TEXT)

     * Insert a paragraph containing some text.
     CALL RW_START_PARA("", "")
     CALL RW_PUT("Reality is a software environment that supports Reality " : ...
        "applications on UNIX and Windows (NT, 2000 and XP) systems. The " : ...
        "applications support environment supplied by Reality is a Relational " : ...
        "Database Management System (RDBMS), supporting multiple databases on " : ...
        "a single host platform, a range of powerful utilities for database " : ...
        "management and inquiry, and a set of utilities for operating system " : ...
        "resources.")
     CALL RW_END_PARA

     * Start a division.
     * Give the division a background colour and a border.
     aClass = 'style="background-color: honeydew; ' : ...
        'border: thin inset seagreen; ' : ...
        'padding: 10px;"'
     CALL RW_START_DIV("", aClass)

     * Insert a level 2 heading.
     TEXT = "Multiple Databases"
     CALL RWS_HEADING(TEXT, 2, "")
     CALL RW_PUT(TEXT)

     * Insert a paragraph containing some text.
     CALL RW_START_PARA("", "")
     CALL RW_PUT("Any number of databases can be created and maintained on the host. " : ...
        "The only restriction is disk space availability. This allows " : ...
        "independent and secure use of different databases by different " : ...
        "departments or groups using the system. Each database comprises a " : ...
        "collection of data organised in relational data structures enabling " : ...
        "easy access to, and manipulation of data.")
     CALL RW_END_PARA

     * Close off the division.
     CALL RW_END_DIV

     * Complete the page.
     CALL RW_END_PAGE
RETURN

Go to top button